// 车牌号码自定义校验
export const carNumberCheck = (rule, value, callback) => {
  const pattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/
  if (pattern.test(value)) {
    callback()
  } else {
    callback(new Error('请输入符合规定的车牌号码'))
  }
}
